//
//  CustomTableViewCell.m
//  225视听百科
//
//  Created by 张元阳(10) on 14-12-29.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "CustomTableViewCell.h"

@implementation CustomTableViewCell
- (void)dealloc
{
    [_imageV1 release];
    [_imageV2 release];
    [_imageV3 release];
    [_imageV4 release];
    [_label1 release];
    [_label2 release];
    [_label3 release];
    [_label4 release];
    [_label5 release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageV1 = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, self.frame.size.width / 10, self.frame.size.width / 7)];
        [self addSubview:_imageV1];
        [_imageV1 release];
        
        self.imageV2 = [[UIImageView alloc] initWithFrame:CGRectMake(self.frame.size.width / 10 + 20, 20 + self.frame.size.width / 20, 20, 20)];
        _imageV2.image = [UIImage imageNamed:@"1.png"];
        [self addSubview:_imageV2];
        [_imageV2 release];
        
        self.imageV3 = [[UIImageView alloc] initWithFrame:CGRectMake(self.frame.size.width / 10 + 85, 20 + self.frame.size.width / 20, 20, 20)];
        _imageV3.image = [UIImage imageNamed:@"2.png"];
        [self addSubview:_imageV3];
        [_imageV3 release];
        
        self.imageV4 = [[UIImageView alloc] initWithFrame:CGRectMake(self.frame.size.width / 10 + 150, 20 + self.frame.size.width / 20, 20, 20)];
        _imageV4.image = [UIImage imageNamed:@"3.png"];
        [self addSubview:_imageV4];
        [_imageV4 release];
        
        self.label1 = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width / 10 + 20, 10, 250, self.frame.size.width / 20)];
        [self addSubview:_label1];
        [_label1 release];
        
        self.label2 = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width - 50, self.frame.size.width / 20, 50, self.frame.size.width / 20)];
        [_label2 setFont:[UIFont systemFontOfSize:13]];
        [self addSubview:_label2];
        [_label2 release];
        
        self.label3 = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width / 10 + 40, 20 + self.frame.size.width / 20, 45, 20)];
        [_label3 setFont:[UIFont systemFontOfSize:13]];
        [self addSubview:_label3];
        [_label3 release];
        
        self.label4 = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width / 10 + 110, 20 + self.frame.size.width / 20, 40, 20)];
        [_label4 setFont:[UIFont systemFontOfSize:13]];
        [self addSubview:_label4];
        [_label4 release];
        
        self.label5 = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width / 10 + 170, 20 + self.frame.size.width / 20, 40, 20)];
        [_label5 setFont:[UIFont systemFontOfSize:13]];
        [self addSubview:_label5];
        [_label5 release];
        
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
